﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Zj.SchoolManage.Domain.Core
{
    /// <summary>
    /// 学生
    /// </summary>
    public class Student
    {
        public Student()
        {
            this.Enrollments = new HashSet<Enrollment>();
        }
        [Key]
        public int Id { get; set; }
        public string Name { get; set; }

        public virtual ICollection<Enrollment> Enrollments { get; set; }
    }
}
